# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=django-cors-headers
pkgname="py3-$_pkgname"
pkgver=3.10.0
pkgrel=1
pkgdesc="Django App that adds Cross-Origin Resource Sharing (CORS) headers to responses"
url="https://github.com/adamchainz/django-cors-headers"
arch="noarch"
license="MIT"
depends="
	py3-django
"
makedepends="py3-setuptools_scm"
checkdepends="
	py3-coverage
	py3-pytest
	py3-pytest-django
	py3-pytest-randomly
"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # pytest-django and pytest-randomly are not on the repositories yet
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
da1f175081ce76c5b95d197e3d024f9a4dc6a1cc3b39c4427b62291e5a681885dd45e3c31b1d897cd11edab65416abe5dc687ae1a798de0f280eb2c2907b6f04  django-cors-headers-3.10.0.tar.gz
"
